package com.fxp.project.jiuselu.web.business.v1.controller.article;

import com.fxp.project.jiuselu.web.base.controller.BaseController;
import com.fxp.project.jiuselu.web.domain.CommonPage;
import com.fxp.project.jiuselu.web.domain.CommonResult;
import com.fxp.project.jiuselu.web.models.article.request.ReqAtricles;
import com.fxp.project.jiuselu.web.models.article.service.IJslArticleBannerService;
import com.fxp.project.jiuselu.web.models.article.service.IjslArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.BindingResult;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

/**
 * 资讯Controller
 *
 * @author Jason.Wang
 * @date 2021-10-18
 */
@RestController
@RequestMapping("/v1/articlebanner/")
public class JslArticleBannerController extends BaseController {

    @Autowired
    private IJslArticleBannerService iJslArticleBannerService ;


    @PostMapping("getOne")
    @CrossOrigin
    public CommonResult list() {
        return CommonResult.success(iJslArticleBannerService.getOne());
    }
}
